\doxysection{remote\+Task.\+h}
\hypertarget{remote_task_8h_source}{}\label{remote_task_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/TasksInc/remoteTask.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/TasksInc/remoteTask.h}}
\mbox{\hyperlink{remote_task_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00016\ }
\DoxyCodeLine{00017\ \textcolor{preprocessor}{\#ifndef\ \_\_\_REMOTETASK\_H\_\_\_}}
\DoxyCodeLine{00018\ \textcolor{preprocessor}{\#define\ \_\_\_REMOTETASK\_H\_\_\_}}
\DoxyCodeLine{00019\ }
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#include\ "{}cmsis\_os.h"{}}}
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{main_8h}{main.h}}"{}}}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ \textcolor{keywordtype}{void}\ remoteTask(\textcolor{keywordtype}{void}\ \textcolor{keyword}{const}\ *\ argument);}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#define\ BUFF\_SIZE\ \ \ 25}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#define\ RC\_SW\_UP\ \ \ \ \ \ 1}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#define\ RC\_SW\_MID\ \ \ \ \ 3}}
\DoxyCodeLine{00029\ \textcolor{preprocessor}{\#define\ RC\_SW\_DOWN\ \ \ \ 2}}
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \textcolor{keyword}{extern}\ uint8\_t\ rx\_buff[BUFF\_SIZE];}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00034\ \{}
\DoxyCodeLine{00035\ \ \ \ \ uint16\_t\ online;}
\DoxyCodeLine{00036\ \ \ \ \ \textcolor{comment}{//joystick\ channel\ value}}
\DoxyCodeLine{00037\ \ \ \ \ }
\DoxyCodeLine{00038\ \ \ \ \ \textcolor{keyword}{struct}}
\DoxyCodeLine{00039\ \ \ \ \ \{}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ int16\_t\ ch[10];}
\DoxyCodeLine{00041\ \ \ \ \ \}\ rc;}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \ \ \ \ \textcolor{keyword}{struct}}
\DoxyCodeLine{00044\ \ \ \ \ \{}
\DoxyCodeLine{00045\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ STICK\ VALUE\ */}}
\DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ int16\_t\ left\_vert;}
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ int16\_t\ left\_hori;}
\DoxyCodeLine{00048\ \ \ \ \ \ \ \ \ int16\_t\ right\_vert;}
\DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ int16\_t\ right\_hori;}
\DoxyCodeLine{00050\ \ \ \ \ \}\ joy;}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \ \ \ \ \textcolor{keyword}{struct}}
\DoxyCodeLine{00053\ \ \ \ \ \{}
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ VAR\ VALUE\ */}}
\DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{float}\ a;}
\DoxyCodeLine{00056\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{float}\ b;}
\DoxyCodeLine{00057\ \ \ \ \ \}\ var;}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ \ \ \ \ \textcolor{keyword}{struct}}
\DoxyCodeLine{00060\ \ \ \ \ \{}
\DoxyCodeLine{00061\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ KEY\ VALUE\ */}}
\DoxyCodeLine{00062\ \ \ \ \ \ \ \ \ uint8\_t\ a;}
\DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ uint8\_t\ b;}
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ uint8\_t\ c;}
\DoxyCodeLine{00065\ \ \ \ \ \ \ \ \ uint8\_t\ d;}
\DoxyCodeLine{00066\ \ \ \ \ \ \ \ \ uint8\_t\ e;}
\DoxyCodeLine{00067\ \ \ \ \ \ \ \ \ uint8\_t\ f;}
\DoxyCodeLine{00068\ \ \ \ \ \ \ \ \ uint8\_t\ g;}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ uint8\_t\ h;}
\DoxyCodeLine{00070\ \ \ \ \ \}\ key;}
\DoxyCodeLine{00071\ \ \ \ \ \ }
\DoxyCodeLine{00072\ \}\ \mbox{\hyperlink{structremoter__t}{remoter\_t}};}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00074\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00075\ \{}
\DoxyCodeLine{00076\ \ \ \ \ uint8\_t\ sw\_a;\ \textcolor{comment}{//\ SWA}}
\DoxyCodeLine{00077\ \ \ \ \ uint8\_t\ sw\_b;\ \textcolor{comment}{//\ SWB}}
\DoxyCodeLine{00078\ \ \ \ \ uint16\_t\ sw\_c;\ \textcolor{comment}{//\ SWC}}
\DoxyCodeLine{00079\ \ \ \ \ uint8\_t\ sw\_d;\ \textcolor{comment}{//\ SWD}}
\DoxyCodeLine{00080\ \ \ \ \ int16\_t\ ch1;\ \textcolor{comment}{//\ 通道1\ (云台yaw)}}
\DoxyCodeLine{00081\ \ \ \ \ int16\_t\ ch2;\ \textcolor{comment}{//\ 通道2\ (云台pitch)}}
\DoxyCodeLine{00082\ \ \ \ \ int16\_t\ ch3;\ \textcolor{comment}{//\ 通道3\ (前后)}}
\DoxyCodeLine{00083\ \ \ \ \ int16\_t\ ch4;\ \textcolor{comment}{//\ 通道4\ (左右)}}
\DoxyCodeLine{00084\ \ \ \ \ uint8\_t\ sw\_a\_last;}
\DoxyCodeLine{00085\ \ \ \ \ uint8\_t\ sw\_b\_last;}
\DoxyCodeLine{00086\ \ \ \ \ uint16\_t\ sw\_c\_last;}
\DoxyCodeLine{00087\ \ \ \ \ uint8\_t\ sw\_d\_last;}
\DoxyCodeLine{00088\ \ \ \ \ uint8\_t\ sw\_a\_up\_to\_down\_flag;}
\DoxyCodeLine{00089\ \ \ \ \ uint8\_t\ sw\_b\_up\_to\_down\_flag;}
\DoxyCodeLine{00090\ \ \ \ \ uint8\_t\ sw\_c\_midtoup\_flag;}
\DoxyCodeLine{00091\ \ \ \ \ uint8\_t\ sw\_c\_uptomid\_flag;}
\DoxyCodeLine{00092\ \ \ \ \ uint8\_t\ sw\_c\_midtodown\_flag;}
\DoxyCodeLine{00093\ \ \ \ \ uint8\_t\ sw\_c\_downtomid\_flag;}
\DoxyCodeLine{00094\ \ \ \ \ uint8\_t\ sw\_d\_up\_to\_down\_flag;}
\DoxyCodeLine{00095\ \}\ \mbox{\hyperlink{structrc__ctrl__t}{rc\_ctrl\_t}};}
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00097\ }
\DoxyCodeLine{00098\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
